home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Digitalfoto 118
/
Digitalfoto 118.iso
/
mac
/
programas
/
00
/
start.swf
/
scripts
/
frame_27
/
DoAction.as
Wrap
Text File
|
2009-11-16
|
1KB
|
55 lines
function decodeUnixPath(s)
{
originale = new Array("\\");
zeichen = "/";
x = 0;
while(x < originale.length)
{
while(s.indexOf(originale[x]) != -1)
{
pos = s.indexOf(originale[x]);
s = s.substring(0,pos) + zeichen.charAt(x) + s.substring(pos + originale[x].length,s.length);
}
x++;
}
return s;
}
if(client_os == "Windows")
{
mdm.Forms.SplashForm.callFunction("output","Decoding..","");
}
if(useFSP_path == undefined)
{
gotoAndPlay(5);
}
else if(useFSP_path == "true")
{
if(client_os == "Windows")
{
fsp_path = appdir;
}
else if(appdir_osx == undefined)
{
gotoAndPlay(5);
}
else if(appdir_osx.indexOf("undefined/") == -1)
{
if(appdir_osx.indexOf("\\") == -1)
{
fsp_path = appdir_osx;
}
else
{
fsp_path = decodeUnixPath(appdir_osx);
}
}
else
{
gotoAndPlay(3);
}
}
else
{
fsp_path = "";
}